using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using clf.weighing.entity;

namespace weighing
{
    public class RoleVo : BaseVo
    {
        #region Constract
        public Role mRole;
        public RoleVo(Role role)
        {
            mRole = role;
        }
        #endregion

        public Int64 Id { get { return mRole.id; } set { mRole.id = value; OnPropertyChanged(this, nameof(Id)); } }

        /// <summary>
        /// 注释:菜单名称
        /// 可空:YES
        /// </summary>

        public String Name { get { return mRole.name; } set { mRole.name = value; OnPropertyChanged(this, nameof(Name)); } }

        /// <summary>
        /// 注释:说明
        /// 可空:YES
        /// </summary>

        public String Descript { get { return mRole.descript; } set { mRole.descript = value; OnPropertyChanged(this, nameof(Descript)); } }

        /// <summary>
        /// 注释:状态
        /// 可空:YES
        /// 默认值:1
        /// </summary>

        public int Status { 
            get { return (int)mRole.status; } 
            set { mRole.status = value; OnPropertyChanged(this, nameof(Status)); } 
        }

        /// <summary>
        /// 注释: 1 过磅员 2管理员 100 开发
        /// 可空:NO
        ///默认值:1
        /// </summary>

        public Int32? Type { get { return mRole.type; } set { mRole.type = value; OnPropertyChanged(this, nameof(Type)); } }

        /// <summary>
        /// 注释:是否为系统预留
        /// 可空:YES
        /// 默认值:0
        /// </summary>

        public bool IsSevered { 
            get { return (bool)mRole.isSevered; } 
            set { mRole.isSevered = value; OnPropertyChanged(this, nameof(IsSevered)); } 
        }

    }
}
